// 工单的接口
import requset from '@/utils/requset'
// 获取当时工单汇总信息(人员统计头部信息)
export const getOrder = (params) => requset({
  url: `/task-service/task/taskReportInfo/${params.start}/${params.end}`
})
// 获取一定时间范围之内的收入
export const getIincome = (params) => requset({
  url: '/order-service/report/orderAmount',
  params: params
})
// 获取一定时间范围之内的订单总数
export const getTotal = (params) => requset({
  url: '/order-service/report/orderCount',
  params: params
})
// 合作商点位汇总统计
export const getPartner = () => requset({
  url: '/vm-service/node/nodeCollect'
})
// 获取点位总数
export const TotalPoints = () => requset({
  url: '/vm-service/node/count'
})
// 获取合作商总数
export const setPartner = () => requset({
  url: '/user-service/partner/count'
})
// 根据地区汇总销售额数据(销售量分布)
export const GrossSales = (params) => requset({
  url: `/order-service/report/regionCollect/${params.start}/${params.end}`
})
// 获取销售额统计
export const SalesStatistics = (params) => requset({
  url: `/order-service/report/amountCollect/${params.collectType}/${params.start}/${params.end}`
})
// 获取销售前几的商品
export const fewItems = (params) => requset({
  url: `/order-service/report/skuTop/${params.topValue}/${params.start}/${params.end}`
})
